% Created 2025-08-26 周二 23:42
% Intended LaTeX compiler: pdflatex
\documentclass[bigger]{beamer}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{wrapfig}
\usepackage{rotating}
\usepackage[normalem]{ulem}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{capt-of}
\usepackage{hyperref}
\usepackage{fontspec,xeCJK,amsmath}
\setmainfont{Times New Roman}
\setCJKmainfont{STSong}
\usepackage{graphicx,minted}
\setsansfont{Times New Roman}
\usetheme{Madrid}
\setbeamertemplate{caption}[numbered]
\usetheme{default}
\author{周计明\quad 教授}
\date{2025 秋}
\title{如何用Emacs制作理工科PPT}
\institute[西工大]{西北工业大学}
\hypersetup{
 pdfauthor={周计明\quad 教授},
 pdftitle={如何用Emacs制作理工科PPT},
 pdfkeywords={},
 pdfsubject={},
 pdfcreator={Emacs 30.1 (Org mode 9.7.11)}, 
 pdflang={English}}
\begin{document}

\maketitle
\begin{frame}{Outline}
\tableofcontents
\end{frame}

\section{Emacs简介}
\label{sec:orgc793b7d}
\begin{frame}[label={sec:org32fa947}]{Emacs简介}
\begin{itemize}
\item 可定制的操作系统
\begin{itemize}
\item Lisp内核支持无限扩展
\end{itemize}
\item 跨世纪效率工具
\begin{itemize}
\item 1976 \(\rightarrow\) 2025 持续进化的生产力引擎
\end{itemize}
\item 键盘流工作哲学
\begin{itemize}
\item 十指不离主键区完成所有操作
\end{itemize}
\item 全领域工作平台
\begin{itemize}
\item 编程/写作/科研/管理无缝整合
\end{itemize}
\item 自由软件图腾
\begin{itemize}
\item 开源社区共建的知识乌托邦
\end{itemize}
\end{itemize}
\end{frame}
\begin{frame}[label={sec:org47bd76c}]{}
正文内容，此处引用文献

\cite{knuth1986the}。
\end{frame}
\begin{frame}[label={sec:org408a1f1}]{公式}
\(2/3\),\(2\div 3\)

\begin{enumerate}
\item sfdlj
\item sdfs
\item sdf

dsfsf
\end{enumerate}
\end{frame}
\begin{frame}[label={sec:org825c785}]{图}
\begin{figure}[htbp]
\centering
\includegraphics[width=4cm]{./1495459937128.png}
\caption{\label{fig:05}图题}
\end{figure}


图\ref{fig:05}
P
图 \ref{sec:orgaa5ecb4} 表示
\end{frame}
\begin{frame}[label={sec:org6f831eb}]{分栏}
\begin{columns}
\begin{column}{0.5\columnwidth}
\begin{itemize}
\item dsdfds
\end{itemize}
\end{column}
\begin{column}{0.3\columnwidth}
\begin{itemize}
\item 43563
\end{itemize}
\end{column}
\end{columns}
\note{sdfs fsdf sf
sdfs fsdf sf}
\end{frame}
\begin{frame}[label={sec:org93b09af},fragile]{babel python}
 \begin{verbatim}
return [[1, 2, 3], [4, 5, 6]]
\end{verbatim}

\begin{table}[htbp]
\label{}
\centering
\begin{tabular}{rrr}
1 & 2 & 3\\
4 & 5 & 6\\
\end{tabular}
\end{table}

\begin{table}[htbp]
\label{input-data}
\centering
\begin{tabular}{lrr}
姓名 & 年龄 & 分数\\
\hline
张三 & 20 & 85\\
李四 & 22 & 92\\
王五 & 21 & 78\\
\end{tabular}
\end{table}


\begin{verbatim}
print("这是在会话中执行的代码")
\end{verbatim}

\begin{verbatim}
print("mmm")
x = 1 + 1
print(f"1 + 1 = {x}")
\end{verbatim}
\end{frame}
\begin{frame}[label={sec:orgb4d49d8}]{无标题备注}
\note{sfjg
safds safd sa

\begin{figure}[htbp]
\centering
\includegraphics[width=4cm]{./1495459937128.png}
\caption{\label{fig:05}图题}
\end{figure}}
\end{frame}
\begin{frame}[allowframebreaks]{程序代码}
sdfs fsdf sf

sdfs fsdf sf

sdfs fsdf sf

sdfs fsdf sf

sdfs fsdf sf

sdfs fsdf sf

sdfs fsdf sf

sdfs fsdf sf

sdfs fsdf sf

sdfs fsdf sf

sdfs fsdf sf

sdfs fsdf sf

sdfs fsdf sf

sdfs fsdf sf

sdfs fsdf sf

sdfs fsdf sf

sdfs fsdf sf

sdfs fsdf sf

sdfs fsdf sf

sdfs fsdf sf

sdfs fsdf sf

sdfs fsdf sf

sdfs fsdf sf

sdfs fsdf sf

sdfs fsdf sf
sdfs fsdf sf
sdfs fsdf sf
sdfs fsdf sf
sdfs fsdf sf
sdfs fsdf sf
sdfs fsdf sf
sdfs fsdf sf
\end{frame}
\begin{frame}[label={sec:org4c77a02},fragile]{程序高亮}
\begin{minted}[linenos]{bash}
    #!/bin/bash
    for f in ./[^a]*[0-9].md
    do
     f1=${f%.*}
     f2=${f1##*[a-zA-Z]}
    if [ "$f2" == "1" ]; then
      sed '1i#一、是非题' "$f" > "$f1.1md"
    elif [ "$f2" == "2" ];then
      sed '1i#二、选择题' "$f" > "$f1.2md"
    elif [ "$f2" == "3" ];then
      sed '1i#三、填空题' "$f" > "$f1.3md"
    elif [ "$f2" == "4" ];then
      sed '1i#四、问答题' "$f" > "$f1.4md"
    elif [ "$f2" == "5" ];then
      sed '1i#五、分析题' "$f" > "$f1.5md"
    fi
    done
### 合并
    for f in ./[^a]*[0-9].[0-9]md
    do
      f1=${f%[0-9].*}
      f2=${f1##*[a-zA-Z]} 
      cat "$f" >> "$f1.md.forDoc"
      rm "$f"
    done
### 增加空行
    for f in ./*.forDoc
    do
      sed -i 'G' "$f" 
    done
\end{minted}
\end{frame}
\begin{frame}[label={sec:orgaa5ecb4}]{参考文献}
sdfsf

\bibliographystyle{ieeetr}
\bibliography{reference}
\end{frame}
\end{document}
